/*
 * @Author: 黄宇/Hyuishine
 * @Date: 2021-12-14 22:40:35
 * @LastEditors: 胡俊/treence
 * @LastEditTime: 2022-05-18 15:16:00
 * @Description: 
 * @Email: hyuishine@gmail.com
 * @Company: 3xData
 * @youWant: add you want
 */
import globalPostRequest from '@/request/globalPostRequest.js'

// 消息中心列表
export function message_list (data, callback) {
    return globalPostRequest({
        url: '/system/notice/myNoticeList',
        method: 'get',
        data,
        callback
    })
}

// 消息中心表单
export function message_form (data, callback) {
    return globalPostRequest({
        url: '/system/notice/myNoticeDetail?noticeId=' + data,
        method: 'get',
        callback
    })
}

// 消息全部已读
export function message_readAll (data, callback) {
    return globalPostRequest({
        url: '/system/notice/allRead',
        method: 'put',
        data,
        callback
    })
}